package ua.kpi.ipsa.expert.api.net;

import java.rmi.*;
import java.util.*;

/**
 * 
 * @author doctorpro
 *
 */
public interface ServerGateway extends Remote {
	
	/**
	 * 
	 * @param password
	 * @param login
	 * @return
	 * @throws RemoteException
	 */
	public UsersConsole createUsersConsole(String login, String pass, ServerToUserLeash l) 
			throws RemoteException, ConsoleException;
	
	/**
	 * 
	 * @param password
	 * @return
	 * @throws RemoteException
	 * @throws ConsoleException
	 */
	public AdminsConsole createAdminsConsole(String password) 
			throws RemoteException, ConsoleException;
	
	public boolean assertOnline() throws RemoteException;
}
